<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<h3>location</h3>
	</body>
	<script type="text/javascript">
		// location
		console.log('location:', location);
		
		// location.href 完整的地址
		console.log('href',location.href);
		
		// location.search ?后面的文本(包含?)
		// 如果地址同时包含 ?和# ,search返回的是从?到#的部分
		console.log('search',location.search);
		
		// location.hash #后面部分(包含#号)
		console.log('hash',location.hash);
	</script>
</html>
